package com.ordersystem.demo.serviceImpl;

import com.ordersystem.demo.model.ProductCategory;
import com.ordersystem.demo.respoistory.ProductCategoryRespoistory;
import com.ordersystem.demo.service.ProductCatagoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ProductCatagoryServiceImpl implements ProductCatagoryService {

    @Autowired
    private ProductCategoryRespoistory respoistory;

    @Override
    public List<ProductCategory> findAll() {
        return respoistory.findAll();
    }
}
